package com.gcxy.dto.teacher;

import com.alibaba.excel.annotation.ExcelProperty;
import com.gcxy.constant.StringConst;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * Copyright (C), 2024-2024, BUG闭退！
 * Author: Huang先森
 * Date: 2024/7/30 12:41
 * FileName: AddTeacherInfoDTo
 * Description:
 */
@Data
public class AddTeacherInfoDTO {

    @NotBlank(message = "教师账号不能为空")
    @Length(max = StringConst.TEACHER_ACCOUNT_LENGTH, message = "用户账号最多15个字")
    @Pattern(regexp = "^[A-Za-z0-9]+$", message = "用户账号只能输入英文或者数字")
    @ExcelProperty(value = "教师账号")
    private String teacherAccount;

    @NotBlank(message = "教师姓名不能为空")
    @Length(max = StringConst.USER_NAME_LENGTH, message = "用户姓名最多10个字")
    @Pattern(regexp = "^[\\u4e00-\\u9fa50-9]+$", message = "用户姓名只能输入中文或者数字")
    @ExcelProperty(value = "教师姓名")
    private String teacherName;

    @ApiModelProperty("文件路径")
    private String teacherSign;

    @ApiModelProperty( "组织id")
    private Integer agencyId;

}
